@include('admin.public.head')
@include('admin.public.pop')

<style type="text/css">
    .inner_btn {
        background: #19a97b;
        color: white;
        padding: 5px 8px;
        border-radius: 2px;
    }
</style>

<div class="ibox-title">
    <h5>用户获取经验记录</h5>
</div>

<div class="ibox-content">

    <div class="row">
        <div class="col-sm-12 pull-right m-b-xs">
            <form action="">

                <div class="col-sm-1  m-b-xs text-center pull-right">
                    <button type="submit" class="btn btn-sm btn-primary">搜索</button> </span>
                </div>

                <div class="col-sm-2 text-center pull-right">
                    <input type="text" name="sear_value" value="{{$sear_value}}" placeholder="手機號/昵稱" class="input form-control">
                </div>

            </form>
        </div>
    </div>

    <table class="table table-bordered">
        <thead>
        <tr>
            <th>获得经验值</th>
            <th>用户昵称</th>
            <th>用户手机</th>
            <th>获得类型</th>
            <th>备注</th>
{{--            <th>操作</th>--}}
        </tr>
        </thead>
        <tbody>
        @foreach ($result as $v)
            <tr>
                <td>{{$v->exp_value}}</td>
                <td>{{$v->user->nickname}}</td>
                <td>{{$v->user->phone}}</td>
                <td>@if($v->type == 1) 训练获得 @endif</td>
                <td>{{$v->remarks}}</td>
            </tr>
        @endforeach
        </tbody>
    </table>
</div>

